package com.share.device.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.share.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Schema(description = "充电宝")
/**
 * 充电宝
 * @author ruoyi
 */
public class PowerBank extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    @Schema(description = "充电宝ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 充电宝编号 */
    @Schema(description = "充电宝编号")
    @NotBlank(message = "充电宝编号不能为空")
    private String powerBankNo;

    /** 电量 */
    @Schema(description = "电量")
    @NotNull(message = "电量不能为空")
    private BigDecimal electricity;

    /** 描述 */
    @Schema(description = "描述")
    @NotBlank(message = "描述不能为空")
    private String description;

    /** 状态（0:未投放 1：可用 2：已租用 3：充电中 4：故障） */
    @Schema(description = "状态")
    private String status;

}
